<!DOCTYPE html>
<html lang="en">
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
	<html xmlns="http://www.w3.org/1999/xhtml"> 
	<head> 
        <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> 
        <title>无标题文档</title> 
        <script language="javascript"> 
        function checkEmail(){ 
        var strEmail=document.myform.txtEmail.value; 
        if(strEmail.length==0) 
        { alert("电子邮件不能为空！"); 
        return false;} 
        if(strEmail.indexOf("@",0)==-1) 
        {alert("电子邮件格式不正确\n必须包含@符号！"); 
        return false; 
        } 
        if(strEmail.indexOf(".",0)==-1) 
        {alert("电子邮件格式不正确\n必须包含.符号！"); 
        return false; 
        } 
        return true;} 
        </script> 
        </head> 
        
        <body> 
        <form name="myform" method="post" action="reg_success.htm" onSubmit="return checkEmail()" > 
        电子邮件：<input type="text" name="txtEmail" id="txtEmail" /> 
        <input name="registerButton" type="submit" id="registerButton" value="发送" /> 
        </form> 
        </body> 
    
	</html> 
	

